package com.zoro.dyformservice.support.filter.auth.url;

import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhaoxingwu
 */
@Service
public class AuthUrlSettingService {

    private final AuthUrlSettingMapper authUrlSettingMapper;

    public AuthUrlSettingService(AuthUrlSettingMapper authUrlSettingMapper) {
        this.authUrlSettingMapper = authUrlSettingMapper;
    }

    public AuthTypeBo getAuthTypeBo() {
        List<AuthUrlSetting> settings = this.authUrlSettingMapper.getAll();
        return new AuthTypeBo(settings);
    }

}
